home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: Linker Error: Segment xx exceeds 64k?
- Date: 29 Mar 1996 16:41:10 GMT
- Organization: Netcom
- Message-ID: <4jh3r6$scq@dfw-ixnews6.ix.netcom.com>
- References: <315a6e3a.4050698@netnews.ntu.edu.tw>
- NNTP-Posting-Host: den-co11-03.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Fri Mar 29 10:41:10 AM CST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <315a6e3a.4050698@netnews.ntu.edu.tw>, ben@water.ee.nsysu.edu.tw says...
- >Yes, that's exactly what I got from my Borland C++ 4.53 compiler (Linker Error:
- >Segment xx exceeds 64k). I was trying to rebuild a CodeGuard-enabled target with
- >EasyWin mode. The same rebuilding process went just fine with Win32 console
- >mode. Any work-around? Thanks in advance.
-
- I think that EasyWin mode creates a 16-bit application, which means that the 64k data
- segment limit is in effect. You can try:
-
- 1) Setting the "far data threshold" option on the compiler to some small
- value (like 100).
-
- 2) Finding any large arrays:
- char c[10000];
- and making them far:
- char far c[10000];
-
- 3) Reducing the stack size in the DEF file (warning! stack overflow potential!).
-
- john lilley
-
-